package com.bdqn.gulimall.product.feign;

import com.bdqn.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @FeignClien 标注为远程调用哪个服务的类
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {


    /**
     * 判断是否有库存
     * @param skuIds
     * @return
     */
    @PostMapping("/ware/waresku/hasstock")
    R getSkusHasStock(@RequestBody List<Long> skuIds);

}
